<template>
  <div class="EMPIAdministration_JRBG">
    <div class="pubBig Privilege">
      <div class="h0">
        <p class="lt"></p>
      </div>
      <div class="dDownMain">
        <div
          class="twoBox"
          :style="
            this.$route.query.Token
              ? 'top:50px;left:10px'
              : 'top: 100px;padding:10px'
          "
        >
          <el-tabs>
            <el-tab-pane label="接入统计">
              <el-tabs type="border-card">
                <el-tab-pane label="数据分析">
                  <el-table :data="tableData" style="width: 100%">
                    <el-table-column prop="ApplicationName" label="来源系统">
                    </el-table-column>
                    <el-table-column prop="HandleCount" label="处理总数">
                    </el-table-column>
                    <el-table-column prop="NewCount" label="新增主索引数量">
                    </el-table-column>
                    <el-table-column prop="MergeCount" label="合并数量">
                    </el-table-column>
                    <el-table-column
                      prop="UpdateRightCount"
                      label="有效更新数量"
                    >
                    </el-table-column>
                    <el-table-column
                      prop="UpdateErrorCount"
                      label="无效更新数量"
                    >
                    </el-table-column>
                  </el-table>
                </el-tab-pane>
                <el-tab-pane label="数据统计">
                  <el-table :data="tableData" style="width: 100%">
                    <el-table-column prop="data1" label="来源系统">
                    </el-table-column>
                    <el-table-column prop="data2" label="处理总数">
                    </el-table-column>
                    <el-table-column prop="data3" label="新增主索引数量">
                    </el-table-column>
                    <el-table-column prop="data4" label="合并数量">
                    </el-table-column>
                    <el-table-column prop="data5" label="有效更新数量">
                    </el-table-column>
                    <el-table-column prop="data6" label="无效更新数量">
                    </el-table-column>
                  </el-table>
                </el-tab-pane>
              </el-tabs>
            </el-tab-pane>
            <el-tab-pane label="源数据清洗统计">
              <el-table :data="tableData" style="width: 100%">
                <el-table-column prop="data1" label="来源系统">
                </el-table-column>
                <el-table-column prop="data2" label="处理总数">
                </el-table-column>
                <el-table-column prop="data3" label="新增主索引数量">
                </el-table-column>
                <el-table-column prop="data4" label="合并数量">
                </el-table-column>
                <el-table-column prop="data5" label="有效更新数量">
                </el-table-column>
                <el-table-column prop="data6" label="无效更新数量">
                </el-table-column>
              </el-table>
            </el-tab-pane>
          </el-tabs>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "",
  data() {
    return {
      tableData: [],
    };
  },
  methods: {
    getTableData() {
      this.$get("Patient/GetStatistics").then((res) => {
        this.tableData = res.data.list;
      });
    },
  },
  mounted() {
    this.getTableData();
  },
  created() {
    if (this.$route.query.Token) {
      localStorage.setItem("Token", this.$route.query.Token);
    }
  },
};
</script>
<style lang="scss">
.EMPIAdministration_JRBG {
  .top-input {
    display: inline-block;
    width: 350px;
  }

  .box-top {
    margin-top: 15px;
    margin-left: 5px;
  }
}
</style>
